from b import *
# mkdir('/home/chu/disp/v1')
import torch
import tensorflow as tf

print(torch.backends.cudnn.version())

print('pytorch can detect ',torch.cuda.device_count(),' GPUs')

# print('tensorflow can detect ',tf.device())



with tf.device('/gpu:0'):
    a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
    b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
    c = tf.matmul(a, b)

with tf.Session() as sess:
    print(sess.run(c))
